package com.pzh.vue.mapper;

import com.pzh.vue.pojo.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xzh
 * @since 2022-04-04
 */
public interface CourseMapper extends BaseMapper<Course> {
    @Update("UPDATE sys_course SET select_num = #{sn} WHERE course_name = #{cn}")
    void updateSn(@Param(value = "sn") Integer selectNum,@Param(value = "cn") String courseName);
}
